<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/20
 * Time: 14:44
 */

namespace app\admin\controller;


use app\admin\Imp\ImpPlugins;

final class TeamController extends CommonController implements ImpPlugins
{
    public $is_verify = false;
    private static $config = [];
    private static $sort = 2;

    public static function setConfig()
    {
        self::$config = ['底层服务编写:', '前端(vue)架构:', '研发团队:', '设计团队:', '官网网址:', 'QQ:', '邮箱:'];
    }


    public static function controlAdmin()
    {
        self::setConfig();
        $path = pathinfo(get_class());
        $name = str_replace(config('controller_suffix'), '', $path['filename']);
        $db_case = [
            '刘权昌',
            '刘权昌',
            '戴航甫，刘权昌',
            '任红君',
            "<a href='http://www.jihui3653.cn'>http://www.jihui3653.cn</a>",
            '976520408',
            '976520408@QQ.com'
        ];
        $case_data = [];
        $case_data['title'] = $name;
        $case_data['sort'] = self::$sort;
        foreach (self::$config as $key => $value) {
            $case_data['list'][] = [$value, $db_case[$key]];
        }
        self::$config = $case_data;
    }

    public static function getUpdate()
    {
        self::controlAdmin();
        return self::$config;
    }

}